# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
        ('thdata', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Sen',
            fields=[
                ('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
                ('sanse_deng_id', models.CharField(max_length=11)),
                ('equipment_name', models.CharField(max_length=100)),
                ('sanse_deng', models.CharField(max_length=100)),
                ('equipment_id', models.CharField(max_length=100)),
                ('equipment_type', models.CharField(max_length=100)),
                ('sensors_type', models.CharField(max_length=100)),
            ],
            options={
                'db_table': 'sanse_deng_list',
            },
        ),
        migrations.CreateModel(
            name='TbMachineGantt',
            fields=[
                ('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
                ('gw_id', models.CharField(max_length=100)),
                ('state', models.IntegerField()),
                ('nomal', models.IntegerField()),
                ('exception', models.IntegerField()),
                ('standby', models.IntegerField()),
                ('stop', models.IntegerField()),
                ('lost', models.IntegerField()),
                ('start_time', models.DateTimeField()),
                ('last_time', models.DateTimeField()),
            ],
            options={
                'db_table': 'tb_machine_gantt',
            },
        ),
        migrations.CreateModel(
            name='TbMachineState1',
            fields=[
                ('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
                ('gw_id', models.CharField(max_length=100)),
                ('time', models.DateTimeField()),
                ('yellow', models.CharField(max_length=10, blank=True, null=True)),
                ('red', models.CharField(max_length=10, blank=True, null=True)),
                ('green', models.CharField(max_length=10, blank=True, null=True)),
            ],
            options={
                'db_table': 'tb_machine_state1',
            },
        ),
        migrations.CreateModel(
            name='TbTempMachineState',
            fields=[
                ('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
                ('gw_id', models.CharField(max_length=100)),
                ('controller', models.CharField(max_length=40)),
                ('rc', models.DateTimeField()),
                ('red', models.CharField(max_length=10)),
                ('green', models.CharField(max_length=10)),
                ('yellow', models.CharField(max_length=10)),
            ],
            options={
                'db_table': 'tb_temp_machine_state',
            },
        ),
        migrations.CreateModel(
            name='UnmStateNew',
            fields=[
                ('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
                ('controller', models.CharField(max_length=255, db_column='Controller')),
                ('state', models.CharField(max_length=255)),
                ('start_time', models.DateTimeField()),
                ('last_time', models.DateTimeField()),
                ('equipment_name', models.CharField(max_length=20)),
            ],
            options={
                'db_table': 'tb_unm_state_new',
            },
        ),
    ]
